package com.dzsw.javabase.keywordfinal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {

    private String name;
    private int age;

    public void say() {
        doSay();
    }

    private void doSay() {
        System.out.println("I am a person.");
    }
}
